package com.qiyi.player.wonder.body.controller.playercommand
{
   import org.puremvc.as3.patterns.command.SimpleCommand;
   import org.puremvc.as3.interfaces.INotification;
   import com.qiyi.player.wonder.body.model.PlayerProxy;
   import com.qiyi.player.wonder.body.BodyDef;
   import com.qiyi.player.wonder.common.pingback.PingBack;
   import com.qiyi.player.wonder.common.pingback.PingBackDef;
   
   public class PlayerPauseCommand extends SimpleCommand
   {
      
      public function PlayerPauseCommand() {
         super();
      }
      
      override public function execute(param1:INotification) : void {
         super.execute(param1);
         var _loc2_:PlayerProxy = facade.retrieveProxy(PlayerProxy.NAME) as PlayerProxy;
         if((_loc2_.curActor.hasStatus(BodyDef.PLAYER_STATUS_PLAYING)) || (_loc2_.curActor.hasStatus(BodyDef.PLAYER_STATUS_SEEKING)) || (_loc2_.curActor.hasStatus(BodyDef.PLAYER_STATUS_WAITING)))
         {
            _loc2_.curActor.pause();
            PingBack.getInstance().userActionPing(PingBackDef.PAUSE,_loc2_.curActor.currentTime);
         }
      }
   }
}
